<div>
    <h2 data-translate="milkbeeApp.leaguer.home.title">Leaguers</h2>
    <jhi-alert></jhi-alert>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th jh-sort-by="category"><span data-translate="milkbeeApp.category.name">Category</span></th>
                    <th jh-sort-by="name"><span data-translate="milkbeeApp.leaguer.name">Name</span> <span data-translate="milkbeeApp.leaguer.nikename">Nikename</span><span data-translate="milkbeeApp.leaguer.realName">Real Name</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="score"><span data-translate="milkbeeApp.leaguer.score">Score</span> <span data-translate="milkbeeApp.leaguer.gold">Gold</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="estateRank"><span data-translate="milkbeeApp.leaguer.estateRank">Estate Rank</span><span data-translate="milkbeeApp.leaguer.mana">Mana</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="accusation"><span data-translate="milkbeeApp.leaguer.accusation">Accusation</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="cardCount"><span data-translate="milkbeeApp.leaguer.cardCount">Card Count</span> <span data-translate="milkbeeApp.leaguer.commentCount">Comment Count</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="leaguer in vm.leaguers track by leaguer.strangerId">
                    <td>{{leaguer.categoryId}}</td>
                    <td>{{leaguer.name}} <br />{{leaguer.nikename}}<br /></td>
                    <td>{{leaguer.score}} <br />{{leaguer.gold}}</td>
                    <td>{{leaguer.estateRank}}<br />{{leaguer.mana}}</td>
                    <td>{{leaguer.accusation}}</td>
                    
                    <td>{{leaguer.cardCount}}<br />{{leaguer.commentCount}} </td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                             <button type="submit"
                                    ng-click="vm.free({strangerId:leaguer.strangerId})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-ok-sign"></span>
                                <span class="hidden-xs hidden-sm" data-translate="milkbeeApp.leaguer.button.free"></span>
                            </button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
